package tech.hypersense.common.core.utils;

import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.event.AnalysisEventListener;

import java.io.InputStream;

/**
 * @Author: HyperSense
 * @CreateTime: 2025-03-25
 * @Description:  Excel 工具类
 * @Version: 1.0
 */
public class ExcelUtils {

    public static <T> void importExcel(InputStream is, Class clazz, AnalysisEventListener<T> listener) {
        EasyExcel.read(is, clazz, listener).sheet().doRead();
    }
}
